Optimal. Leaf size=306 \[ -\frac {5 (b c-a d) \left (b^2 c^2+14 a b c d-63 a^2 d^2\right ) \sqrt {a+b x} \sqrt {c+d x}}{64 b^5 d}-\frac {5 \left (b^2 c^2+14 a b c d-63 a^2 d^2\right ) \sqrt {a+b x} (c+d x)^{3/2}}{96 b^4 d}-\frac {\left (14 a c+\frac {b c^2}{d}-\frac {63 a^2 d}{b}\right ) \sqrt {a+b x} (c+d x)^{5/2}}{24 b^2 (b c-a d)}-\frac {2 a^2 (c+d x)^{7/2}}{b^2 (b c-a d) \sqrt {a+b x}}+\frac {\sqrt {a+b x} (c+d x)^{7/2}}{4 b^2 d}-\frac {5 (b c-a d)^2 \left (b^2 c^2+14 a b c d-63 a^2 d^2\right ) \tanh ^{-1}\left (\frac {\sqrt {d} \sqrt {a+b x}}{\sqrt {b} \sqrt {c+d x}}\right )}{64 b^{11/2} d^{3/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.22, antiderivative size = 306, normalized size of antiderivative = 1.00, number of steps
used = 8, number of rules used = 6, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.273, Rules used = {91, 81, 52, 65,
223, 212} \begin {gather*} -\frac {\sqrt {a+b x} (c+d x)^{5/2} \left (-\frac {63 a^2 d}{b}+14 a c+\frac {b c^2}{d}\right )}{24 b^2 (b c-a d)}-\frac {2 a^2 (c+d x)^{7/2}}{b^2 \sqrt {a+b x} (b c-a d)}-\frac {5 (b c-a d)^2 \left (-63 a^2 d^2+14 a b c d+b^2 c^2\right ) \tanh ^{-1}\left (\frac {\sqrt {d} \sqrt {a+b x}}{\sqrt {b} \sqrt {c+d x}}\right )}{64 b^{11/2} d^{3/2}}-\frac {5 \sqrt {a+b x} \sqrt {c+d x} (b c-a d) \left (-63 a^2 d^2+14 a b c d+b^2 c^2\right )}{64 b^5 d}-\frac {5 \sqrt {a+b x} (c+d x)^{3/2} \left (-63 a^2 d^2+14 a b c d+b^2 c^2\right )}{96 b^4 d}+\frac {\sqrt {a+b x} (c+d x)^{7/2}}{4 b^2 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 52
Rule 65
Rule 81
Rule 91
Rule 212
Rule 223
Rubi steps
\begin {align*} \int \frac {x^2 (c+d x)^{5/2}}{(a+b x)^{3/2}} \, dx &=-\frac {2 a^2 (c+d x)^{7/2}}{b^2 (b c-a d) \sqrt {a+b x}}+\frac {2 \int \frac {(c+d x)^{5/2} \left (-\frac {1}{2} a (b c-7 a d)+\frac {1}{2} b (b c-a d) x\right )}{\sqrt {a+b x}} \, dx}{b^2 (b c-a d)}\\ &=-\frac {2 a^2 (c+d x)^{7/2}}{b^2 (b c-a d) \sqrt {a+b x}}+\frac {\sqrt {a+b x} (c+d x)^{7/2}}{4 b^2 d}-\frac {\left (b^2 c^2+14 a b c d-63 a^2 d^2\right ) \int \frac {(c+d x)^{5/2}}{\sqrt {a+b x}} \, dx}{8 b^2 d (b c-a d)}\\ &=-\frac {\left (b^2 c^2+14 a b c d-63 a^2 d^2\right ) \sqrt {a+b x} (c+d x)^{5/2}}{24 b^3 d (b c-a d)}-\frac {2 a^2 (c+d x)^{7/2}}{b^2 (b c-a d) \sqrt {a+b x}}+\frac {\sqrt {a+b x} (c+d x)^{7/2}}{4 b^2 d}-\frac {\left (5 \left (b^2 c^2+14 a b c d-63 a^2 d^2\right )\right ) \int \frac {(c+d x)^{3/2}}{\sqrt {a+b x}} \, dx}{48 b^3 d}\\ &=-\frac {5 \left (b^2 c^2+14 a b c d-63 a^2 d^2\right ) \sqrt {a+b x} (c+d x)^{3/2}}{96 b^4 d}-\frac {\left (b^2 c^2+14 a b c d-63 a^2 d^2\right ) \sqrt {a+b x} (c+d x)^{5/2}}{24 b^3 d (b c-a d)}-\frac {2 a^2 (c+d x)^{7/2}}{b^2 (b c-a d) \sqrt {a+b x}}+\frac {\sqrt {a+b x} (c+d x)^{7/2}}{4 b^2 d}-\frac {\left (5 (b c-a d) \left (b^2 c^2+14 a b c d-63 a^2 d^2\right )\right ) \int \frac {\sqrt {c+d x}}{\sqrt {a+b x}} \, dx}{64 b^4 d}\\ &=-\frac {5 (b c-a d) \left (b^2 c^2+14 a b c d-63 a^2 d^2\right ) \sqrt {a+b x} \sqrt {c+d x}}{64 b^5 d}-\frac {5 \left (b^2 c^2+14 a b c d-63 a^2 d^2\right ) \sqrt {a+b x} (c+d x)^{3/2}}{96 b^4 d}-\frac {\left (b^2 c^2+14 a b c d-63 a^2 d^2\right ) \sqrt {a+b x} (c+d x)^{5/2}}{24 b^3 d (b c-a d)}-\frac {2 a^2 (c+d x)^{7/2}}{b^2 (b c-a d) \sqrt {a+b x}}+\frac {\sqrt {a+b x} (c+d x)^{7/2}}{4 b^2 d}-\frac {\left (5 (b c-a d)^2 \left (b^2 c^2+14 a b c d-63 a^2 d^2\right )\right ) \int \frac {1}{\sqrt {a+b x} \sqrt {c+d x}} \, dx}{128 b^5 d}\\ &=-\frac {5 (b c-a d) \left (b^2 c^2+14 a b c d-63 a^2 d^2\right ) \sqrt {a+b x} \sqrt {c+d x}}{64 b^5 d}-\frac {5 \left (b^2 c^2+14 a b c d-63 a^2 d^2\right ) \sqrt {a+b x} (c+d x)^{3/2}}{96 b^4 d}-\frac {\left (b^2 c^2+14 a b c d-63 a^2 d^2\right ) \sqrt {a+b x} (c+d x)^{5/2}}{24 b^3 d (b c-a d)}-\frac {2 a^2 (c+d x)^{7/2}}{b^2 (b c-a d) \sqrt {a+b x}}+\frac {\sqrt {a+b x} (c+d x)^{7/2}}{4 b^2 d}-\frac {\left (5 (b c-a d)^2 \left (b^2 c^2+14 a b c d-63 a^2 d^2\right )\right ) \text {Subst}\left (\int \frac {1}{\sqrt {c-\frac {a d}{b}+\frac {d x^2}{b}}} \, dx,x,\sqrt {a+b x}\right )}{64 b^6 d}\\ &=-\frac {5 (b c-a d) \left (b^2 c^2+14 a b c d-63 a^2 d^2\right ) \sqrt {a+b x} \sqrt {c+d x}}{64 b^5 d}-\frac {5 \left (b^2 c^2+14 a b c d-63 a^2 d^2\right ) \sqrt {a+b x} (c+d x)^{3/2}}{96 b^4 d}-\frac {\left (b^2 c^2+14 a b c d-63 a^2 d^2\right ) \sqrt {a+b x} (c+d x)^{5/2}}{24 b^3 d (b c-a d)}-\frac {2 a^2 (c+d x)^{7/2}}{b^2 (b c-a d) \sqrt {a+b x}}+\frac {\sqrt {a+b x} (c+d x)^{7/2}}{4 b^2 d}-\frac {\left (5 (b c-a d)^2 \left (b^2 c^2+14 a b c d-63 a^2 d^2\right )\right ) \text {Subst}\left (\int \frac {1}{1-\frac {d x^2}{b}} \, dx,x,\frac {\sqrt {a+b x}}{\sqrt {c+d x}}\right )}{64 b^6 d}\\ &=-\frac {5 (b c-a d) \left (b^2 c^2+14 a b c d-63 a^2 d^2\right ) \sqrt {a+b x} \sqrt {c+d x}}{64 b^5 d}-\frac {5 \left (b^2 c^2+14 a b c d-63 a^2 d^2\right ) \sqrt {a+b x} (c+d x)^{3/2}}{96 b^4 d}-\frac {\left (b^2 c^2+14 a b c d-63 a^2 d^2\right ) \sqrt {a+b x} (c+d x)^{5/2}}{24 b^3 d (b c-a d)}-\frac {2 a^2 (c+d x)^{7/2}}{b^2 (b c-a d) \sqrt {a+b x}}+\frac {\sqrt {a+b x} (c+d x)^{7/2}}{4 b^2 d}-\frac {5 (b c-a d)^2 \left (b^2 c^2+14 a b c d-63 a^2 d^2\right ) \tanh ^{-1}\left (\frac {\sqrt {d} \sqrt {a+b x}}{\sqrt {b} \sqrt {c+d x}}\right )}{64 b^{11/2} d^{3/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.63, size = 228, normalized size = 0.75 \begin {gather*} \frac {\sqrt {c+d x} \left (-945 a^4 d^3+105 a^3 b d^2 (17 c-3 d x)+a^2 b^2 d \left (-839 c^2+637 c d x+126 d^2 x^2\right )+a b^3 \left (15 c^3-337 c^2 d x-244 c d^2 x^2-72 d^3 x^3\right )+b^4 x \left (15 c^3+118 c^2 d x+136 c d^2 x^2+48 d^3 x^3\right )\right )}{192 b^5 d \sqrt {a+b x}}-\frac {5 (b c-a d)^2 \left (b^2 c^2+14 a b c d-63 a^2 d^2\right ) \tanh ^{-1}\left (\frac {\sqrt {b} \sqrt {c+d x}}{\sqrt {d} \sqrt {a+b x}}\right )}{64 b^{11/2} d^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(960\) vs.
\(2(264)=528\).
time = 0.08, size = 961, normalized size = 3.14
method | result | size |
default | \(\frac {\sqrt {d x +c}\, \left (96 b^{4} d^{3} x^{4} \sqrt {\left (d x +c \right ) \left (b x +a \right )}\, \sqrt {b d}-144 a \,b^{3} d^{3} x^{3} \sqrt {\left (d x +c \right ) \left (b x +a \right )}\, \sqrt {b d}+272 b^{4} c \,d^{2} x^{3} \sqrt {\left (d x +c \right ) \left (b x +a \right )}\, \sqrt {b d}+945 \ln \left (\frac {2 b d x +2 \sqrt {\left (d x +c \right ) \left (b x +a \right )}\, \sqrt {b d}+a d +b c}{2 \sqrt {b d}}\right ) a^{4} b \,d^{4} x -2100 \ln \left (\frac {2 b d x +2 \sqrt {\left (d x +c \right ) \left (b x +a \right )}\, \sqrt {b d}+a d +b c}{2 \sqrt {b d}}\right ) a^{3} b^{2} c \,d^{3} x +1350 \ln \left (\frac {2 b d x +2 \sqrt {\left (d x +c \right ) \left (b x +a \right )}\, \sqrt {b d}+a d +b c}{2 \sqrt {b d}}\right ) a^{2} b^{3} c^{2} d^{2} x -180 \ln \left (\frac {2 b d x +2 \sqrt {\left (d x +c \right ) \left (b x +a \right )}\, \sqrt {b d}+a d +b c}{2 \sqrt {b d}}\right ) a \,b^{4} c^{3} d x -15 \ln \left (\frac {2 b d x +2 \sqrt {\left (d x +c \right ) \left (b x +a \right )}\, \sqrt {b d}+a d +b c}{2 \sqrt {b d}}\right ) b^{5} c^{4} x +252 a^{2} b^{2} d^{3} x^{2} \sqrt {\left (d x +c \right ) \left (b x +a \right )}\, \sqrt {b d}-488 a \,b^{3} c \,d^{2} x^{2} \sqrt {\left (d x +c \right ) \left (b x +a \right )}\, \sqrt {b d}+236 b^{4} c^{2} d \,x^{2} \sqrt {\left (d x +c \right ) \left (b x +a \right )}\, \sqrt {b d}+945 \ln \left (\frac {2 b d x +2 \sqrt {\left (d x +c \right ) \left (b x +a \right )}\, \sqrt {b d}+a d +b c}{2 \sqrt {b d}}\right ) a^{5} d^{4}-2100 \ln \left (\frac {2 b d x +2 \sqrt {\left (d x +c \right ) \left (b x +a \right )}\, \sqrt {b d}+a d +b c}{2 \sqrt {b d}}\right ) a^{4} b c \,d^{3}+1350 \ln \left (\frac {2 b d x +2 \sqrt {\left (d x +c \right ) \left (b x +a \right )}\, \sqrt {b d}+a d +b c}{2 \sqrt {b d}}\right ) a^{3} b^{2} c^{2} d^{2}-180 \ln \left (\frac {2 b d x +2 \sqrt {\left (d x +c \right ) \left (b x +a \right )}\, \sqrt {b d}+a d +b c}{2 \sqrt {b d}}\right ) a^{2} b^{3} c^{3} d -15 \ln \left (\frac {2 b d x +2 \sqrt {\left (d x +c \right ) \left (b x +a \right )}\, \sqrt {b d}+a d +b c}{2 \sqrt {b d}}\right ) a \,b^{4} c^{4}-630 a^{3} b \,d^{3} x \sqrt {\left (d x +c \right ) \left (b x +a \right )}\, \sqrt {b d}+1274 a^{2} b^{2} c \,d^{2} x \sqrt {\left (d x +c \right ) \left (b x +a \right )}\, \sqrt {b d}-674 a \,b^{3} c^{2} d x \sqrt {\left (d x +c \right ) \left (b x +a \right )}\, \sqrt {b d}+30 b^{4} c^{3} x \sqrt {\left (d x +c \right ) \left (b x +a \right )}\, \sqrt {b d}-1890 a^{4} d^{3} \sqrt {\left (d x +c \right ) \left (b x +a \right )}\, \sqrt {b d}+3570 a^{3} b c \,d^{2} \sqrt {\left (d x +c \right ) \left (b x +a \right )}\, \sqrt {b d}-1678 a^{2} b^{2} c^{2} d \sqrt {\left (d x +c \right ) \left (b x +a \right )}\, \sqrt {b d}+30 a \,b^{3} c^{3} \sqrt {\left (d x +c \right ) \left (b x +a \right )}\, \sqrt {b d}\right )}{384 \sqrt {\left (d x +c \right ) \left (b x +a \right )}\, \sqrt {b d}\, \sqrt {b x +a}\, b^{5} d}\) | \(961\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: ValueError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 1.77, size = 790, normalized size = 2.58 \begin {gather*} \left [-\frac {15 \, {\left (a b^{4} c^{4} + 12 \, a^{2} b^{3} c^{3} d - 90 \, a^{3} b^{2} c^{2} d^{2} + 140 \, a^{4} b c d^{3} - 63 \, a^{5} d^{4} + {\left (b^{5} c^{4} + 12 \, a b^{4} c^{3} d - 90 \, a^{2} b^{3} c^{2} d^{2} + 140 \, a^{3} b^{2} c d^{3} - 63 \, a^{4} b d^{4}\right )} x\right )} \sqrt {b d} \log \left (8 \, b^{2} d^{2} x^{2} + b^{2} c^{2} + 6 \, a b c d + a^{2} d^{2} + 4 \, {\left (2 \, b d x + b c + a d\right )} \sqrt {b d} \sqrt {b x + a} \sqrt {d x + c} + 8 \, {\left (b^{2} c d + a b d^{2}\right )} x\right ) - 4 \, {\left (48 \, b^{5} d^{4} x^{4} + 15 \, a b^{4} c^{3} d - 839 \, a^{2} b^{3} c^{2} d^{2} + 1785 \, a^{3} b^{2} c d^{3} - 945 \, a^{4} b d^{4} + 8 \, {\left (17 \, b^{5} c d^{3} - 9 \, a b^{4} d^{4}\right )} x^{3} + 2 \, {\left (59 \, b^{5} c^{2} d^{2} - 122 \, a b^{4} c d^{3} + 63 \, a^{2} b^{3} d^{4}\right )} x^{2} + {\left (15 \, b^{5} c^{3} d - 337 \, a b^{4} c^{2} d^{2} + 637 \, a^{2} b^{3} c d^{3} - 315 \, a^{3} b^{2} d^{4}\right )} x\right )} \sqrt {b x + a} \sqrt {d x + c}}{768 \, {\left (b^{7} d^{2} x + a b^{6} d^{2}\right )}}, \frac {15 \, {\left (a b^{4} c^{4} + 12 \, a^{2} b^{3} c^{3} d - 90 \, a^{3} b^{2} c^{2} d^{2} + 140 \, a^{4} b c d^{3} - 63 \, a^{5} d^{4} + {\left (b^{5} c^{4} + 12 \, a b^{4} c^{3} d - 90 \, a^{2} b^{3} c^{2} d^{2} + 140 \, a^{3} b^{2} c d^{3} - 63 \, a^{4} b d^{4}\right )} x\right )} \sqrt {-b d} \arctan \left (\frac {{\left (2 \, b d x + b c + a d\right )} \sqrt {-b d} \sqrt {b x + a} \sqrt {d x + c}}{2 \, {\left (b^{2} d^{2} x^{2} + a b c d + {\left (b^{2} c d + a b d^{2}\right )} x\right )}}\right ) + 2 \, {\left (48 \, b^{5} d^{4} x^{4} + 15 \, a b^{4} c^{3} d - 839 \, a^{2} b^{3} c^{2} d^{2} + 1785 \, a^{3} b^{2} c d^{3} - 945 \, a^{4} b d^{4} + 8 \, {\left (17 \, b^{5} c d^{3} - 9 \, a b^{4} d^{4}\right )} x^{3} + 2 \, {\left (59 \, b^{5} c^{2} d^{2} - 122 \, a b^{4} c d^{3} + 63 \, a^{2} b^{3} d^{4}\right )} x^{2} + {\left (15 \, b^{5} c^{3} d - 337 \, a b^{4} c^{2} d^{2} + 637 \, a^{2} b^{3} c d^{3} - 315 \, a^{3} b^{2} d^{4}\right )} x\right )} \sqrt {b x + a} \sqrt {d x + c}}{384 \, {\left (b^{7} d^{2} x + a b^{6} d^{2}\right )}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {x^{2} \left (c + d x\right )^{\frac {5}{2}}}{\left (a + b x\right )^{\frac {3}{2}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.35, size = 463, normalized size = 1.51 \begin {gather*} \frac {1}{192} \, \sqrt {b^{2} c + {\left (b x + a\right )} b d - a b d} {\left (2 \, {\left (b x + a\right )} {\left (4 \, {\left (b x + a\right )} {\left (\frac {6 \, {\left (b x + a\right )} d^{2} {\left | b \right |}}{b^{7}} + \frac {17 \, b^{28} c d^{7} {\left | b \right |} - 33 \, a b^{27} d^{8} {\left | b \right |}}{b^{34} d^{6}}\right )} + \frac {59 \, b^{29} c^{2} d^{6} {\left | b \right |} - 326 \, a b^{28} c d^{7} {\left | b \right |} + 315 \, a^{2} b^{27} d^{8} {\left | b \right |}}{b^{34} d^{6}}\right )} + \frac {3 \, {\left (5 \, b^{30} c^{3} d^{5} {\left | b \right |} - 191 \, a b^{29} c^{2} d^{6} {\left | b \right |} + 511 \, a^{2} b^{28} c d^{7} {\left | b \right |} - 325 \, a^{3} b^{27} d^{8} {\left | b \right |}\right )}}{b^{34} d^{6}}\right )} \sqrt {b x + a} - \frac {4 \, {\left (\sqrt {b d} a^{2} b^{3} c^{3} {\left | b \right |} - 3 \, \sqrt {b d} a^{3} b^{2} c^{2} d {\left | b \right |} + 3 \, \sqrt {b d} a^{4} b c d^{2} {\left | b \right |} - \sqrt {b d} a^{5} d^{3} {\left | b \right |}\right )}}{{\left (b^{2} c - a b d - {\left (\sqrt {b d} \sqrt {b x + a} - \sqrt {b^{2} c + {\left (b x + a\right )} b d - a b d}\right )}^{2}\right )} b^{6}} + \frac {5 \, {\left (\sqrt {b d} b^{4} c^{4} {\left | b \right |} + 12 \, \sqrt {b d} a b^{3} c^{3} d {\left | b \right |} - 90 \, \sqrt {b d} a^{2} b^{2} c^{2} d^{2} {\left | b \right |} + 140 \, \sqrt {b d} a^{3} b c d^{3} {\left | b \right |} - 63 \, \sqrt {b d} a^{4} d^{4} {\left | b \right |}\right )} \log \left ({\left (\sqrt {b d} \sqrt {b x + a} - \sqrt {b^{2} c + {\left (b x + a\right )} b d - a b d}\right )}^{2}\right )}{128 \, b^{7} d^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {x^2\,{\left (c+d\,x\right )}^{5/2}}{{\left (a+b\,x\right )}^{3/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________